<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <link type="text/css" href="#{request.contextPath}/UI/epss/epss.css" rel="stylesheet"/>
        <script type="text/javascript" src="#{request.contextPath}/UI/support/pub.js"/>
    </ui:define>
    <ui:define name="content">
        <h:form id="form" enctype="multipart/form-data">
            <p:growl id="msgs" showDetail="true"/>
            <!--列表维护-->
            <p:dataTable id="pdt"
                         value="#{taskAction.rowTaskList}"
                         var="record"
                         rowKey="#{record.power_Pkid}"
                         selectionMode="single"
                         paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks}
                         {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                          paginator="true"
                         paginatorPosition="bottom"
                         rows="45"
                         rowsPerPageTemplate="500,200,90,45,30,15"
                         rowIndexVar="row"
                         emptyMessage="数据记录为空..."
                         rowStyleClass="#{record.name eq null?'rowDoneStyle':null}"
                         scrollable="true"
                         scrollHeight="470">
                <p:ajax event="rowSelect" listener="#{taskAction.onRowSelect}"/>
                <p:column headerText="任务类别" style="text-align:left;">
                    <h:outputText value="#{record.power_Type}" escape="false"/>
                </p:column>
                <p:column headerText="待处理任务PKID" style="text-align:left;">
                    <h:outputText value="#{record.power_Pkid}"/>
                </p:column>
                <p:column headerText="待处理任务" style="text-align:left;">
                    <h:outputText value="#{record.name}"/>
                </p:column>
                <p:column headerText="状态标志" style="width:100px;text-align:center;">
                    <h:outputText value="#{flowControlAction.getLabelByValueInStatusFlaglist(record.status_Flag)}"/>
                </p:column>
                <p:column headerText="原因" style="width:100px;text-align:right;">
                    <h:outputText value="#{flowControlAction.getLabelByValueInPreStatusFlaglist(record.pre_Status_Flag)}"/>
                </p:column>
            </p:dataTable>
        </h:form>
    </ui:define>
</ui:composition>